#ifndef MAIN_H
#define MAIN_H

#include <QObject>
#include <QTimer>
#include <QSystemTrayIcon>
#include <QTime>
#include <QTcpServer>
#include "encode.h"
#include "flv2x264converter.h"

class Main : public QObject
{
    Q_OBJECT
public:
    Main();
public slots:
    void encode();

private:
    QTime m_start;
    QTimer m_timer;
    double m_videoPts;
    Encoder m_encoder;

    QTcpServer *m_pTcpServer;
};

#endif // MAIN_H
